import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

import '../entity/Data.dart';

class Page2 extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    // var listener =RawKeyboardListener(focusNode: focusNode, child: child)
    return Scaffold(
      appBar: AppBar(
        title: Text("第二个界面")
      ),
      body: RaisedButton(onPressed: (){
        //返回数据给钱一个页面
        Navigator.pop(context,Data("炸死你个",11));
      },
        child: Text("返回"),

      ),
    );
  }

}